#ifndef MYTCPSOCKET_H
#define MYTCPSOCKET_H
#include <QTcpSocket>
#include "protool.h"
#include "opedb.h"
#include <QFile>
#include <QTimer>



class MyTcpSocket : public QTcpSocket
{
    Q_OBJECT //slot信号槽支持
public:
    MyTcpSocket();
    QString getName();//用于获得私有的成员变量
    void copyDir(QString strSrcDir,QString strDestDir);
signals:
    void offLine(MyTcpSocket *mysocket);

public slots:
    void recvMsg();
    void clientOffline();//处理客户端下线
    void sendFileToClient();

private:
    QString m_strName;
    QFile m_file;

    qint64 m_iTotal;
    qint64 m_iReceived;
    bool m_bUpload;
    QTimer *m_pTimer;

};

#endif // MYTCPSOCKET_H
